<ui:composition xmlns='http://www.w3.org/1999/xhtml'
                xmlns:p='http://primefaces.org/ui'
                xmlns:f='http://java.sun.com/jsf/core'
                xmlns:h='http://java.sun.com/jsf/html'
                xmlns:c='http://java.sun.com/jsp/jstl/core'
                xmlns:ui='http://java.sun.com/jsf/facelets' template='page-template.xhtml'>

<ui:define name='transaction'><h:panelGroup id='transaction'><h:inputHidden id='exp' value='#{controller.parameter}'/>

<h:panelGroup layout='block' style='text-align: center; margin-top: 200px' rendered='#{empty controller.lsNode}'>

<img src='../resources/150-Logo.png' style='border: 0; padding: 0; width: 320px' class='boxImage' onClick='showTimeServer()'/></h:panelGroup>


<h:form id='F0'><c:if test='#{controller.windows}'><p:dialog header='#{controller.lsNode[0].content.title}'

        id='W0' widgetVar='W0' width='950' height='570' minimizable='true' position='bottom'>

  <p:ajax event='close' listener='#{controller.closeTransaccion}'/>

  <f:param name='nodeId' value='#{controller.lsNode[0].id}'/>

  <ui:include src='#{controller.lsNode[0].content.pageRef}'><ui:param name='formId' value='F0'/></ui:include>

</p:dialog></c:if></h:form>


<h:form id='F1'><c:if test='#{controller.windows}'><p:dialog header='#{controller.lsNode[1].content.title}'

        id='W1' widgetVar='W1' width='950' height='570' minimizable='true' position='bottom'>

  <p:ajax event='close' listener='#{controller.closeTransaccion}'/>

  <f:param name='nodeId' value='#{controller.lsNode[1].id}'/>

  <ui:include src='#{controller.lsNode[1].content.pageRef}'><ui:param name='formId' value='F1'/></ui:include>

</p:dialog></c:if></h:form>


<h:form id='F2'><c:if test='#{controller.windows}'><p:dialog header='#{controller.lsNode[2].content.title}'

        id='W2' widgetVar='W2' width='950' height='570' minimizable='true' position='bottom'>

  <p:ajax event='close' listener='#{controller.closeTransaccion}'/>

  <f:param name='nodeId' value='#{controller.lsNode[2].id}'/>

  <ui:include src='#{controller.lsNode[2].content.pageRef}'><ui:param name='formId' value='F2'/></ui:include>

</p:dialog></c:if></h:form>


<h:form id='F3'><c:if test='#{controller.windows}'><p:dialog header='#{controller.lsNode[3].content.title}'

        id='W3' widgetVar='W3' width='950' height='570' minimizable='true' position='bottom'>

  <p:ajax event='close' listener='#{controller.closeTransaccion}'/>

  <f:param name='nodeId' value='#{controller.lsNode[3].id}'/>

  <ui:include src='#{controller.lsNode[3].content.pageRef}'><ui:param name='formId' value='F3'/></ui:include>

</p:dialog></c:if></h:form>


<h:form id='FX'><c:if test='#{!controller.windows}'>

  <f:param name='nodeId' value='#{controller.currentContextDescriptor.id}'/>

  <ui:include src='#{controller.currentContextDescriptor.pageRef}'><ui:param name='formId' value='FX'/></ui:include>

</c:if></h:form>

</h:panelGroup></ui:define>

</ui:composition>